#ifndef __IDCARD_H
#define __IDCARD_H

namespace idcard
{
extern "C" {
int init();

int close();

int getStatus();

/* Vulnerable data that does not need to be deleted */
const char *getInfo();

/* Remember to delete dynamically allocated data */
int getIDCardImages(int type, char **out, int &len);

int getIDCardData(int field, char *out, int len);
}
} // namespace idcard

#endif //__IDCARD_H
